<script setup lang="ts">
import { onLaunch, onShow, onHide, onUnload } from '@dcloudio/uni-app'
import store from '../src/store/index'
import '@/uni.scss'
import '@/static/css/custom.scss'
import '@/static/icon/iconfont.css'
// import { getBrowser } from '@/utils/tools'
// import VConsole from 'vconsole';

onLaunch(() => {
  console.log('App Launch')
  const sys = uni.getSystemInfoSync()
  console.log(sys)
  // const vConsole = new VConsole();
  store.commit('setSafeAreaBottom', sys.safeAreaInsets.bottom)
  store.commit('setPlatform', sys.platform)
  store.dispatch('setUserInfo')
})
onShow(() => {
  console.log('App Show')
})
onHide(() => {
  console.log('App Hide')
})
</script>
<style lang="scss">
@import 'uview-plus/index.scss';
@import '@/static/icon/iconfont.css';
view,
div {
  box-sizing: border-box;
}
page {
  background-color: #f3f7f8;
}
.uni-toast {
  padding: 0 30rpx;
}
button::after {
  border: none;
}
body,
html {
  overflow-x: hidden !important;
}
body::-webkit-scrollbar {
  display: none;
}
</style>
